ASP function rnd ()
function rnd () returns a random number from 0 to 1.
Use the following methods:
Copy Code code as follows:
Response.Write Rnd () ' Its possible return value: 0.2357746
If you want to use the Rnd ()
Rnd function
Describe
Returns a random number.
Grammar
rnd[(number)]
The number argument can be any valid numeric expression.
Description
The RND function returns a value less than 1 but greater than or equal to 0. The value of number
Rnd function
DescribeReturns a random number.Grammarrnd[(number)]The number argument can be any valid numeric expression.
DescriptionThe RND function returns a value less than 1 but greater than or equal to 0. The value of number determines how
SQL Server:Code to copy code as followsSelect TOP N * from TABLE Order by NewID ()The NewID () function creates a unique value for the uniqueidentifier type. The above statement achieves the effect of randomly reading N records from a
SQL Server: The code is as follows:Copy code Select top n * From TABLE Order By NewID () The NewID () function creates a unique value of the uniqueidentifier type. The preceding statement reads N records randomly from the Table.Access: The
The script is boring today to tell us a new thing! If there is a program based on the look below, important I have explained more than half, flash 8.0 do not try! Effect: (can be clicked continuously with the mouse)
Let's look at the following
Recently some of our Z-BLOGGER are trying to do what plug-in to stop SPAM, of course, the solution is not no, is to get a super server, but unfortunately can not afford to do. That ...... We have to think about it from the perspective of
Purpose: To prevent malicious users from using robots (malicious programs) for automatic registration, automatic logon, malicious bumping, malicious database access, and brute force password cracking using specific programs, the verification code
ASP function Encyclopedia
ASP functions are similar to VBScript, and here are some common functions
Array ()
function returns an array of
Expression Array (list)
Allow data types: characters, numbers can
Example:
Dim MyArray (
The Random Seed is accurate to milliseconds in computer systems and may be repeated. This time I encountered this problem, and the computer would be too fast.
VB.netPublic class myrandomPrivate _ strin as stringPrivate _ Strout as stringPrivate _
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.